import IndexTemplate from "@/components/Index/IndexTemplate";
//import ShowDataTemplate from "@/components/Index/IndexContent/ShowDataTemplate";
import MaintainOfCreditCardTemplate from "@/components/Index/IndexContent/MaintainOfCreditCardTemplate";
import AddOfCreditCardTemplate from "@/components/Index/IndexContent/AddOfCreditCardTemplate";
import AddOfBankTemplate from "@/components/Index/IndexContent/AddOfBankTemplate";
import MaintainOfBankTemplate from "@/components/Index/IndexContent/MaintainOfBankTemplate";
import MaintainOfUserTemplate from "@/components/Index/IndexContent/MaintainOfUserTemplate";
import SafeOfUserTemplate from "@/components/Index/IndexContent/SafeOfUserTemplate";
import MaintainOfUsersTemplate from "@/components/Index/AdminTemplate/MaintainOfUsersTemplate";

let IndexRouter={
    path:'/index',
    components:{
        main:IndexTemplate
    },
    children:[
        {
            path:'/index',
            redirect:'/index/maintainOfCreditCard'
        },
        {
            path:'/index/maintainOfCreditCard',
            components: {
                content:MaintainOfCreditCardTemplate
            },
            meta:{
                key:'maintainOfCreditCard',
                isLogin:true,
                title:'信用卡维护'
            }
        },
        {
            path:'/index/addOfCreditCard',
            components: {
                content:AddOfCreditCardTemplate
            },
            meta:{
                key:'addOfCreditCard',
                isLogin:true,
                title:'添加信用卡'
            }
        },
        {
            path:'/index/maintainOfBank',
            components: {
                content:MaintainOfBankTemplate
            },
            meta:{
                key:'maintainOfBank',
                isLogin:true,
                title:'银行信息维护'
            }
        },
        {
            path:'/index/addOfBank',
            components: {
                content:AddOfBankTemplate
            },
            meta:{
                key:'addOfBank',
                isLogin:true,
                title:'添加银行信息'
            }
        },
        {
            path:'/index/maintainOfUser',
            components: {
                content:MaintainOfUserTemplate
            },
            meta:{
                key:'maintainOfUser',
                isLogin:true,
                title:'个人信息维护'
            }
        },
        {
            path:'/index/safeOfUser',
            components: {
                content:SafeOfUserTemplate
            },
            meta:{
                key:'safeOfUser',
                isLogin:true,
                title:'安全中心'
            }
        },
        {
            path:'/admin/maintainOfUsers',
            components: {
                content:MaintainOfUsersTemplate
            },
            meta:{
                key:'maintainOfUsers',
                isLogin:true,
                isAdmin:true,
                title:'用户管理中心'
            }
        }
    ]
}
export default IndexRouter